#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int n = 0;
	scanf("%d", &n);

	int i = 1;
	int x = 1;
	for (i = 0; i < n; i++)
	{
		int j = 0;
		for (j = 0; j < n - i; j++)
		{
			printf("%02d", x);
			x++;
		}
		printf("\n");
	}

	return 0;
}